//- preload all images (should be above `img` tag)
cache-asset(src="{{type}}/on.svg")
cache-asset(src="{{type}}/off.svg")

//- actual led 
img.ui.image.led(src="{{type}}/{{innerState}}" class="{{class}}")

//- the sync component that updates status of led 
sync(value="{{ state }}" topic="{{topic}}")

    
    
    
    
